MOVE SPRITE

This command will move the sprite a specified distance.

  Syntax
MOVE SPRITE Sprite Number, Velocity
  Parameters
Sprite Number
Integer
The sprite number
Velocity
Float
Move the sprite the specified distance

  Returns

This command does not return a value.

  Description

Used in combination with the ROTATE SPRITE command a very simple top-down player character can be achieved very easily. The velocity must be a real value.

  Example Code
load image "manwalking.bmp",1
cls
sprite 1,100,100,1
for t=0 to 359
rotate sprite 1,t
move sprite 1,1
next t
do
loop
end
  See also

SPRITE Commands Menu
Index